updating oE DATE

date

<built-in> function date() 

returns a sequence with information on the current date.

Returns:

A sequence of length 8, laid out as follows:

  1. year -- since 1900
  2. month -- January = 1
  3. day -- day of month, starting at 1
  4. hour -- 0 to 23
  5. minute -- 0 to 59
  6. second -- 0 to 59
  7. day of the week -- Sunday = 1
  8. day of the year -- January 1st = 1
Comments:

The value returned for the year is actually the number of years since 1900 (not the last 2 digits of the year). In the year 2000 this value was 100. In 2001 it was 101, and so on.

Example 1:
sequence now = date()  
-- now has: {95,3,24,23,47,38,6,83} 
-- i.e. Friday March 24, 1995 at 11:47:38pm, day 83 of the year 
See Also:

time, now

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu